// 假设 @/axios 是相对路径的别名，尝试替换为实际的相对路径，需根据实际项目结构调整
import { get, post } from '@/axios/index.js'


//交流论坛查询
export const forumList = (data)=>get('/topic/forum/list',data)

//交流论坛新增
export const forumAdd = (data)=>post('/topic/forum/add',data)

// 获取话题详情
export const forumDetail = (id)=>post(`/topic/forum/detail/${id}`)

// 发表回复
export const forumReply = (data)=>post('/topic/forum/replyAdd',data)

//获取论文的评论
export const forumReplyList = (id)=>get(`/topic/forum/replyList/${id}`)

export const hotForum = ()=>get('/topic/forum/hotForum')

//查询我的帖子
export const myForum = (data)=>get('/topic/forum/listMy',data)

//删除帖子
export const deleteForum = (id)=>post(`/topic/forum/delete/${id}`)
